import request from '@/utils/request'

export function getProjectCaseList(data) {
  return request({
    url: 'case/list',
    method: 'post',
    data
  })
}

export function getProjectCase(id) {
  return request({
    url: 'case/get',
    method: 'post',
    params: { id }
  })
}

export function addProjectCase(data) {
  return request({
    url: 'case/add',
    method: 'post',
    data
  })
}

export function editProjectCase(data) {
  return request({
    url: 'case/edit',
    method: 'post',
    data
  })
}

export function editProjectCaseStatus(id, status) {
  return request({
    url: 'case/edit_status',
    method: 'post',
    params: { id, status }
  })
}

export function removeProjectCase(id) {
  return request({
    url: 'case/del',
    method: 'post',
    params: { id }
  })
}
